package com.ydgk.jishuzhan.service;

import com.ydgk.jishuzhan.beans.Question;
import com.ydgk.jishuzhan.beans.QuestionCollection;

import java.util.List;
import java.util.Map;

public interface QuestionService {
    void save(Question question);

    List<Question> findQuestions();

    Question findQuestion(Integer id);

    List<Question> findQuestionsById(Integer id);

    int findCollection(Integer userId, Integer questionId);

    void collectionAdd(Integer userId, Integer questionId);

    int findCollections(Integer id);

    List<QuestionCollection> getCollections(Map<String, Object> map);

    Integer queryQuestionTotal(Map<String, Object> map);

    void deleteQCollection(Integer id);
}
